import sys

from PyQt4.QtCore import *
from PyQt4.QtGui import *

app = QApplication(sys.argv)

w = QWidget(None)
m = QMenuBar(w)

menu = QMenu(m)
menu.setTitle("gjrij")
menu.addAction("Test")

m.addMenu(menu)

w.show()

app.exec_()

